//
//  DDAddressTableCell.m
//  Dingdong
//
//  Created by 程强 on 16/11/21.
//  Copyright © 2016年 程强. All rights reserved.
//

#import "DDAddressTableCell.h"

@implementation DDAddressTableCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}
- (IBAction)setAddressDefaultClick:(id)sender
{
    if (self.defaultBlock) {
        self.defaultBlock();
    }
}
- (IBAction)editAddressClick:(id)sender
{
    if (self.editBlock) {
        self.editBlock();
    }
}
- (IBAction)addressDeleteClick:(id)sender
{
    if (self.deleteBlock) {
        self.deleteBlock();
    }
}
- (void)editReceiptAddress:(void(^)())edit delete:(void(^)())delBlock setDefault:(void(^)())defBlock
{
    self.editBlock = edit;
    self.deleteBlock = delBlock;
    self.defaultBlock = defBlock;
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
